Integrand size = 15, antiderivative size = 12 \[ \int \frac {3+b \sin (x)}{(b+3 \sin (x))^2} \, dx=-\frac {\cos (x)}{b+3 \sin (x)} \]
Time = 0.05 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.00 \[ \int \frac {3+b \sin (x)}{(b+3 \sin (x))^2} \, dx=-\frac {\cos (x)}{b+3 \sin (x)} \]
Time = 0.18 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3042, 3233, 24}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {a+b \sin (x)}{(a \sin (x)+b)^2} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {a+b \sin (x)}{(a \sin (x)+b)^2}dx\) |
\(\Big \downarrow \) 3233 |
\(\displaystyle \frac {\int 0dx}{a^2-b^2}-\frac {\cos (x)}{a \sin (x)+b}\) |
\(\Big \downarrow \) 24 |
\(\displaystyle -\frac {\cos (x)}{a \sin (x)+b}\) |
3.7.96.3.1 Defintions of rubi rules used
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(-(b*c - a*d))*Cos[e + f*x]*((a + b*Sin[e + f*x])^(m + 1)/(f*(m + 1)*(a^2 - b^2))), x] + Simp[1/((m + 1)*(a^2 - b^2)) Int[(a + b*Sin[e + f*x])^(m + 1)*Simp[(a*c - b*d)*(m + 1) - (b*c - a*d)*( m + 2)*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && LtQ[m, -1] && IntegerQ[2*m]
Leaf count of result is larger than twice the leaf count of optimal. \(25\) vs. \(2(12)=24\).
Time = 0.74 (sec) , antiderivative size = 26, normalized size of antiderivative = 2.17
method | result | size |
parallelrisch | \(\frac {-a \sin \left (x \right )-b \left (\cos \left (x \right )+1\right )}{b \left (b +a \sin \left (x \right )\right )}\) | \(26\) |
default | \(\frac {-\frac {a \tan \left (\frac {x}{2}\right )}{b}-1}{\frac {\left (\tan ^{2}\left (\frac {x}{2}\right )\right ) b}{2}+a \tan \left (\frac {x}{2}\right )+\frac {b}{2}}\) | \(36\) |
risch | \(-\frac {2 \left (i a +b \,{\mathrm e}^{i x}\right )}{a \left (a \,{\mathrm e}^{2 i x}-a +2 i b \,{\mathrm e}^{i x}\right )}\) | \(40\) |
norman | \(\frac {-2 \left (\tan ^{2}\left (\frac {x}{2}\right )\right )-\frac {2 a \tan \left (\frac {x}{2}\right )}{b}-\frac {2 a \left (\tan ^{3}\left (\frac {x}{2}\right )\right )}{b}-2}{\left (1+\tan ^{2}\left (\frac {x}{2}\right )\right ) \left (\left (\tan ^{2}\left (\frac {x}{2}\right )\right ) b +2 a \tan \left (\frac {x}{2}\right )+b \right )}\) | \(63\) |
Time = 0.26 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.00 \[ \int \frac {3+b \sin (x)}{(b+3 \sin (x))^2} \, dx=-\frac {\cos \left (x\right )}{a \sin \left (x\right ) + b} \]
Timed out. \[ \int \frac {3+b \sin (x)}{(b+3 \sin (x))^2} \, dx=\text {Timed out} \]
Exception generated. \[ \int \frac {3+b \sin (x)}{(b+3 \sin (x))^2} \, dx=\text {Exception raised: ValueError} \]
Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'assume' command before evaluation *may* help (example of legal syntax is 'assume(4*a^2-4*b^2>0)', see `assume?` f or more de
Leaf count of result is larger than twice the leaf count of optimal. 32 vs. \(2 (12) = 24\).
Time = 0.29 (sec) , antiderivative size = 32, normalized size of antiderivative = 2.67 \[ \int \frac {3+b \sin (x)}{(b+3 \sin (x))^2} \, dx=-\frac {2 \, {\left (a \tan \left (\frac {1}{2} \, x\right ) + b\right )}}{{\left (b \tan \left (\frac {1}{2} \, x\right )^{2} + 2 \, a \tan \left (\frac {1}{2} \, x\right ) + b\right )} b} \]
Time = 7.44 (sec) , antiderivative size = 24, normalized size of antiderivative = 2.00 \[ \int \frac {3+b \sin (x)}{(b+3 \sin (x))^2} \, dx=-\frac {a\,\sin \left (x\right )+b\,\left (\cos \left (x\right )+1\right )}{b\,\left (b+a\,\sin \left (x\right )\right )} \]